package com.wy.navigator;

import java.util.Arrays;
import java.util.List;

public class Constants {
    // SQL操作标签
    public static final String[] SQL_OPERATION_TAGS = {"select", "insert", "update", "delete"};

    // 文件命名前缀
    public static final String SQL_MAP_FILE_PREFIX = "sqlmap-mapping-";
    public static final String WEB_CONTEXT_FILE_PREFIX = "web-context-";
    public static final String BIZ_CONTEXT_FILE_PREFIX = "biz-context-";
    public static final String SQL_MAP_XML_PREFIX = "sql-sqlmapping-";

    // XML标签与属性
    public static final String SQL_MAP_ROOT_TAG = "sqlMap";
    public static final String NAMESPACE_ATTRIBUTE = "namespace";
    public static final String ID_ATTRIBUTE = "id";
    public static final String BEANS_ROOT_TAG = "beans";
    public static final String BEAN_NAME_ATTRIBUTE = "name";

    // 类名常量
    public static final String DAO_IMPL_CLASS_NAME = "DAOImpl";

    // 其他常量
    public static final String XML_EXTENSION = "xml";
    public static final String DO_SUFFIX = ".do";
    public static final String USER_SERVICE_PROPERTY = "userService";
    public static final String NAMESPACE_ID_PATTERN = "([A-Za-z0-9_\\-]+\\.[A-Za-z0-9_\\-]+)";

    public static final List<String> TARGET_CLASS_LIST = Arrays.asList("action.FacadeInvokeAction","action.FacadeInvokeNoTxAction");

    public static final String PROPERTY_NAME = "facadeTarget";
}